package com.gjj.echarts.echartsgjj.vo;

import com.gjj.echarts.echartsgjj.pojo.GjjTableRetentionpayment;
import lombok.Data;
import lombok.ToString;

import java.math.BigDecimal;

/**
 * 所有网上渠道，包括委托扣款和建行网银
 */
@ToString
public class OnlineChannelVo {
    //委托扣款
    private BigDecimal retentionPayment;
    private Integer retentionPaymentUnit;
    private Integer retentionPaymentPeople;
    //建行网银
    private BigDecimal onlineBanking;
    private Integer onlineBankingUnit;
    private Integer onlineBankingPeople;

    //对于委托扣款的详情分类
    private RetentionpaymentVo retentionpaymentVo;

    //总单位数
    private Integer totalOnlineUnit;
    //总人数
    private Integer totalOnlinePeople;

    public BigDecimal getRetentionPayment() {
        return retentionPayment;
    }

    public void setRetentionPayment(BigDecimal retentionPayment) {
        this.retentionPayment = retentionPayment;
    }

    public Integer getRetentionPaymentUnit() {
        return retentionPaymentUnit;
    }

    public void setRetentionPaymentUnit(Integer retentionPaymentUnit) {
        this.retentionPaymentUnit = retentionPaymentUnit;
    }

    public Integer getRetentionPaymentPeople() {
        return retentionPaymentPeople;
    }

    public void setRetentionPaymentPeople(Integer retentionPaymentPeople) {
        this.retentionPaymentPeople = retentionPaymentPeople;
    }

    public BigDecimal getOnlineBanking() {
        return onlineBanking;
    }

    public void setOnlineBanking(BigDecimal onlineBanking) {
        this.onlineBanking = onlineBanking;
    }

    public Integer getOnlineBankingUnit() {
        return onlineBankingUnit;
    }

    public void setOnlineBankingUnit(Integer onlineBankingUnit) {
        this.onlineBankingUnit = onlineBankingUnit;
    }

    public Integer getOnlineBankingPeople() {
        return onlineBankingPeople;
    }

    public void setOnlineBankingPeople(Integer onlineBankingPeople) {
        this.onlineBankingPeople = onlineBankingPeople;
    }

    public RetentionpaymentVo getRetentionpaymentVo() {
        return retentionpaymentVo;
    }

    public void setRetentionpaymentVo(RetentionpaymentVo retentionpaymentVo) {
        this.retentionpaymentVo = retentionpaymentVo;
    }

    public Integer getTotalOnlineUnit() {
        Integer total = 0;
        total += this.getRetentionPaymentUnit();
        total += this.getOnlineBankingUnit();
        return total;
    }

    public Integer getTotalOnlinePeople() {
        Integer total = 0;
        total += this.getRetentionPaymentPeople();
        total += this.getOnlineBankingPeople();
        return total;
    }

}
